<?php


namespace app\admin\controller;
use app\admin\model\Evaluate as EvaluateModel;
use think\Controller;

//用户评价
class Evaluate extends Controller
{

    //显示用户评价信息
    function evaluateList()
    {
        $model = new EvaluateModel();
        $edata = $model->getList();
        $this->assign('edata', $edata);
        return $this->fetch('evaluateList');
    }

    function del($no){
        $model = new EvaluateModel();
        if($model->del($no)){
           return alert_success('删除评论成功!','Evaluate/evaluateList');
        }else{
            return alert_error('删除评论失败!');
        }

    }
}